const requireContext = require("require-context");
const path = require("path");
const userAll = requireContext(
  path.join(__dirname, "../service/users"),
  false,
  /\.js$/
);
let users = {};
userAll.keys().forEach((item) => {
  users[item.replace(".js", "")] = userAll(item);
});

// const userDelete = require("../service/users/userDelete")
// const users = {
//   userDelete
// };

module.exports = users;